package com.neulogistics.infrastructure.integrationeventlog.service;

import com.blackto.lib.eventbus.event.IntegrationEvent;
import com.neulogistics.infrastructure.integrationeventlog.model.IntegrationEventLogEntry;

import java.util.List;

public interface IIntegrationEventLogService {
    List<IntegrationEventLogEntry> retrieveEventLogsPendingToPublish(Long transactionId);

    void saveEvent(IntegrationEvent integrationEvent,
               Long transactionId);

    void markEventAsPublished(Long eventId);
    void markEventAsInProgress(Long eventId);
    void markEventAsFailed(Long eventId);
}
